!function() {
    KISSY.use("event, dom, io, cookie", function (a, b, c, d, e) {
        var f = !1;
        new d({ type: "get", url: "/menu", cache: !1 }).then(function(a) {
            c.html("#jm-header .menus-c", a[0] + '<div class="menu-mask"></div><div class="clearfix"></div>'), b.on("#jm-header .menu", "click", function() {
                var a = f ? c.removeClass : c.addClass;
                f = !f, a("#jm-header", "menus-show"), a("#jm-header .shadow-c", "shadow-dispear"), a("#jm-touch", "menu-displaying");
            }), b.on(".menu-mask", "click", function() { c.removeClass("#jm-touch", "menu-displaying"), c.removeClass("#jm-header", "menus-show"), f = !1; });
        }, function() { console.info("加载菜单失败..."); }), e.get("nodownload") || (c.addClass("#jm-touch", "app-link-displaying"), c.show("#jm-header .download")), b.on("#jm-header .close", "click", function() { e.set("nodownload", "Y", 1), c.removeClass("#jm-touch", "app-link-displaying"), c.hide("#jm-header .download"); });
    });
} ();
